#ifndef GY_READONLYDELEGATE_H
#define GY_READONLYDELEGATE_H

#include "GY_ControlLibrary_global.h"
#include <QItemDelegate>

/** 自定义只读控件
 * @brief The GY_ReadOnlyDelegate class
 */
class GY_CONTROLLIBRARY_EXPORT GY_ReadOnlyDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    GY_ReadOnlyDelegate(QObject *parent = nullptr);
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;

};

#endif // GY_READONLYDELEGATE_H
